package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统日志表
 *
 * @author WeiZiDong
 */
@Table(name = "`sys_log`")
@Data
@ApiModel("系统日志表")
public class SysLog implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "Id", example = "String")
    private String id;
    @Column(name = "`log_type`")
    @ApiModelProperty(value = "日志类型（1登录日志，2操作日志）", example = "1")
    private Integer logType;
    @Column(name = "`log_content`")
    @ApiModelProperty(value = "日志内容", example = "String")
    private String logContent;
    @Column(name = "`operate_type`")
    @ApiModelProperty(value = "操作类型", example = "1")
    private Integer operateType;
    @Column(name = "`userid`")
    @ApiModelProperty(value = "操作用户账号", example = "String")
    private String userid;
    @Column(name = "`username`")
    @ApiModelProperty(value = "操作用户名称", example = "String")
    private String username;
    @Column(name = "`ip`")
    @ApiModelProperty(value = "IP", example = "String")
    private String ip;
    @Column(name = "`method`")
    @ApiModelProperty(value = "请求java方法", example = "String")
    private String method;
    @Column(name = "`request_url`")
    @ApiModelProperty(value = "请求路径", example = "String")
    private String requestUrl;
    @Column(name = "`request_param`")
    @ApiModelProperty(value = "请求参数", example = "默认值")
    private String requestParam;
    @Column(name = "`request_type`")
    @ApiModelProperty(value = "请求类型", example = "String")
    private String requestType;
    @Column(name = "`cost_time`")
    @ApiModelProperty(value = "耗时", example = "1")
    private Long costTime;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
